#! /bin/sh
###############################################################
#
# The script to invoke Siebel EIM job 
#
##############################################################



cd /app/siebel/siebsrvr	  #path to you siebel installation
.  ./siebenv.sh			# setting up siebel enviornment

###########################################################
# Description of parameters that are getting passed
#
# $GATEWAY : Name of your gateway server
# $GPORT : Port number that you Server uses
# $ENTERPRISE : Name of the Enterprise Server
# $SUSER : Name of the user to login to Siebel server manager 
# $SPASS : Password to login
# $APPSERVER : Name of Siebel server where EIM Component is installed
# $IFB : Path and name of the IFB file that should be used for this EIM job
###########################################################

# You can also provide these parameters in a seperate file and use it to run different EIM jobs

echo "Start An Task for Component EIM"

GATEWAY=localhost
GPORT="2320"
ENTERPRISE="SBA_81"
SUSER="SADMIN"
SPASS="SADMIN2"
APPSERVER="siebeltest"
IFB="/siebel/app/siebel/siebsrvr/admin/JY_PROD.ifb"


srvrmgr /g $GATEWAY:$GPORT /e $ENTERPRISE /u $SUSER /p $SPASS /s $APPSERVER /c "START TASK FOR COMPONENT EIM WITH CONFIG=$IFB, ExtendedParams='BatchNum1=100-501', ERRORFLAGS=1, TRACEFLAGS=0, SQLFLAGS=0"

